<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sysfault__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__sysfault.html">SysFault     (System Fault)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga883297a5695f829251d11fb1cc6b6b4c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a> (FAULT_STRUCT_Type *base, <a class="el" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> *config)</td></tr>
<tr class="memdesc:ga883297a5695f829251d11fb1cc6b6b4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the SysFault for recording faults.  <a href="#ga883297a5695f829251d11fb1cc6b6b4c">More...</a><br /></td></tr>
<tr class="separator:ga883297a5695f829251d11fb1cc6b6b4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0a2a097b9b1d69fb51806964639c7af7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga0a2a097b9b1d69fb51806964639c7af7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears status register.  <a href="#ga0a2a097b9b1d69fb51806964639c7af7">More...</a><br /></td></tr>
<tr class="separator:ga0a2a097b9b1d69fb51806964639c7af7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga709ec3b6d64ecd3ca0fc712715f66b7e"><td class="memItemLeft" align="right" valign="top">cy_en_SysFault_source_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga709ec3b6d64ecd3ca0fc712715f66b7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the source of error for the Fault.  <a href="#ga709ec3b6d64ecd3ca0fc712715f66b7e">More...</a><br /></td></tr>
<tr class="separator:ga709ec3b6d64ecd3ca0fc712715f66b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga140278f2e209ee8dfb39eb1574850742"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a> (FAULT_STRUCT_Type *base, <a class="el" href="group__group__sysfault__enums.html#ga9043fc01c3dfcd1fcad3fa52fcc931f4">cy_en_SysFault_Data_t</a> dataSet)</td></tr>
<tr class="memdesc:ga140278f2e209ee8dfb39eb1574850742"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Fault information for the provided dataSet.  <a href="#ga140278f2e209ee8dfb39eb1574850742">More...</a><br /></td></tr>
<tr class="separator:ga140278f2e209ee8dfb39eb1574850742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3da70af9e3a434ac08d9d5d63a09c480"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga3da70af9e3a434ac08d9d5d63a09c480">Cy_SysFault_GetPendingFault</a> (FAULT_STRUCT_Type *base, <a class="el" href="group__group__sysfault__enums.html#ga7c15f9e82a516a6a3ded2dd7f8a2e568">cy_en_SysFault_Set_t</a> pendingFault)</td></tr>
<tr class="memdesc:ga3da70af9e3a434ac08d9d5d63a09c480"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the sources of pending fault that are not captured.  <a href="#ga3da70af9e3a434ac08d9d5d63a09c480">More...</a><br /></td></tr>
<tr class="separator:ga3da70af9e3a434ac08d9d5d63a09c480"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafb1516898b15bdc985a7460c7a9f7ca1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#gafb1516898b15bdc985a7460c7a9f7ca1">Cy_SysFault_SetMaskByIdx</a> (FAULT_STRUCT_Type *base, cy_en_SysFault_source_t idx)</td></tr>
<tr class="memdesc:gafb1516898b15bdc985a7460c7a9f7ca1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the Fault to be captured.  <a href="#gafb1516898b15bdc985a7460c7a9f7ca1">More...</a><br /></td></tr>
<tr class="separator:gafb1516898b15bdc985a7460c7a9f7ca1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga81a4be2819364ef071bdd999b96823de"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga81a4be2819364ef071bdd999b96823de">Cy_SysFault_ClearMaskByIdx</a> (FAULT_STRUCT_Type *base, cy_en_SysFault_source_t idx)</td></tr>
<tr class="memdesc:ga81a4be2819364ef071bdd999b96823de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the faults to be captured.  <a href="#ga81a4be2819364ef071bdd999b96823de">More...</a><br /></td></tr>
<tr class="separator:ga81a4be2819364ef071bdd999b96823de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d607437d17ab97572fb76b4eb77a186"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga9d607437d17ab97572fb76b4eb77a186"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the status of the interrupt.  <a href="#ga9d607437d17ab97572fb76b4eb77a186">More...</a><br /></td></tr>
<tr class="separator:ga9d607437d17ab97572fb76b4eb77a186"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c96322cea288ecd72616b6cf2d77c52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga2c96322cea288ecd72616b6cf2d77c52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears Active Interrupt Source.  <a href="#ga2c96322cea288ecd72616b6cf2d77c52">More...</a><br /></td></tr>
<tr class="separator:ga2c96322cea288ecd72616b6cf2d77c52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac41a1a4c626385118e6bbacba1b38866"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#gac41a1a4c626385118e6bbacba1b38866">Cy_SysFault_SetInterrupt</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:gac41a1a4c626385118e6bbacba1b38866"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers an interrupt via a software write.  <a href="#gac41a1a4c626385118e6bbacba1b38866">More...</a><br /></td></tr>
<tr class="separator:gac41a1a4c626385118e6bbacba1b38866"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b7d86c125f4c1d55ffabfecc3b31338"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga2b7d86c125f4c1d55ffabfecc3b31338">Cy_SysFault_SetInterruptMask</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga2b7d86c125f4c1d55ffabfecc3b31338"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an interrupt mask.  <a href="#ga2b7d86c125f4c1d55ffabfecc3b31338">More...</a><br /></td></tr>
<tr class="separator:ga2b7d86c125f4c1d55ffabfecc3b31338"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ea5e9f82d9a8fad319651386772ea1c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga9ea5e9f82d9a8fad319651386772ea1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears an interrupt mask.  <a href="#ga9ea5e9f82d9a8fad319651386772ea1c">More...</a><br /></td></tr>
<tr class="separator:ga9ea5e9f82d9a8fad319651386772ea1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga873b3af5bd4bc10b844f9b4d781c37a9"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga873b3af5bd4bc10b844f9b4d781c37a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt mask.  <a href="#ga873b3af5bd4bc10b844f9b4d781c37a9">More...</a><br /></td></tr>
<tr class="separator:ga873b3af5bd4bc10b844f9b4d781c37a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga290a6f77497d8310d7f8efd55600225c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a> (FAULT_STRUCT_Type *base)</td></tr>
<tr class="memdesc:ga290a6f77497d8310d7f8efd55600225c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether masked interrupt triggered the interrupt.  <a href="#ga290a6f77497d8310d7f8efd55600225c">More...</a><br /></td></tr>
<tr class="separator:ga290a6f77497d8310d7f8efd55600225c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga883297a5695f829251d11fb1cc6b6b4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga883297a5695f829251d11fb1cc6b6b4c">&#9670;&nbsp;</a></span>Cy_SysFault_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> Cy_SysFault_Init </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the SysFault for recording faults. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a Configuration structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Fault status. Refer <a class="el" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a></dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Configures the SysFault for recording faults. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Fault config */</span></div><div class="line">    <a class="code" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> config = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc___sys_fault__t.html#a4918fb6fa6c96bcc62b0e7332eb68903">ResetEnable</a>   = <span class="keyword">false</span>,</div><div class="line">        .OutputEnable  = <span class="keyword">true</span>,</div><div class="line">        .TriggerEnable = <span class="keyword">false</span>,</div><div class="line">    };</div><div class="line"></div><div class="line">    <span class="comment">/* Configure Interrupt for Fault structure */</span></div><div class="line">    <a class="code" href="structcy__stc__sysint__t.html">cy_stc_sysint_t</a> IRQ_cfg =</div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__sysint__t.html#a204a8f07adf056c8d3dd818136da853f">intrSrc</a> = ((NvicMux3_IRQn &lt;&lt; <a class="code" href="group__group__sysint.html#ga3b9f1b9de4f122495a8b6580ce500d9a">CY_SYSINT_INTRSRC_MUXIRQ_SHIFT</a>) | cpuss_interrupts_fault_0_IRQn), <span class="comment">/* Bit 0-15 of intrSrc is used to store system interrupt value and bit 16-31 to store CPU IRQ value */</span></div><div class="line">        .intrPriority = 2UL</div><div class="line">   };</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                 Fault report settings                     *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a>(FAULT_STRUCT0); <span class="comment">// clear status</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gafb1516898b15bdc985a7460c7a9f7ca1">Cy_SysFault_SetMaskByIdx</a>(FAULT_STRUCT0, CY_SYSFAULT_SRSS_MCWDT0); <span class="comment">// enable Fault MCWDT #0</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2b7d86c125f4c1d55ffabfecc3b31338">Cy_SysFault_SetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line">    <a class="code" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> status = <a class="code" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a>(FAULT_STRUCT0, &amp;config);</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                   Interrupt settings                      *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysint__functions.html#gab2ff6820a898e9af3f780000054eea5d">Cy_SysInt_Init</a>(&amp;IRQ_cfg, &amp;irqFaultHandler);</div><div class="line">    NVIC_SetPriority((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn,  2UL);</div><div class="line">    NVIC_EnableIRQ((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn);</div><div class="line"></div><div class="line">    <span class="comment">/* Triggers an interrupt via a software write.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gac41a1a4c626385118e6bbacba1b38866">Cy_SysFault_SetInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga0a2a097b9b1d69fb51806964639c7af7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0a2a097b9b1d69fb51806964639c7af7">&#9670;&nbsp;</a></span>Cy_SysFault_ClearStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysFault_ClearStatus </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears status register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Configures the SysFault for recording faults. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Fault config */</span></div><div class="line">    <a class="code" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> config = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc___sys_fault__t.html#a4918fb6fa6c96bcc62b0e7332eb68903">ResetEnable</a>   = <span class="keyword">false</span>,</div><div class="line">        .OutputEnable  = <span class="keyword">true</span>,</div><div class="line">        .TriggerEnable = <span class="keyword">false</span>,</div><div class="line">    };</div><div class="line"></div><div class="line">    <span class="comment">/* Configure Interrupt for Fault structure */</span></div><div class="line">    <a class="code" href="structcy__stc__sysint__t.html">cy_stc_sysint_t</a> IRQ_cfg =</div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__sysint__t.html#a204a8f07adf056c8d3dd818136da853f">intrSrc</a> = ((NvicMux3_IRQn &lt;&lt; <a class="code" href="group__group__sysint.html#ga3b9f1b9de4f122495a8b6580ce500d9a">CY_SYSINT_INTRSRC_MUXIRQ_SHIFT</a>) | cpuss_interrupts_fault_0_IRQn), <span class="comment">/* Bit 0-15 of intrSrc is used to store system interrupt value and bit 16-31 to store CPU IRQ value */</span></div><div class="line">        .intrPriority = 2UL</div><div class="line">   };</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                 Fault report settings                     *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a>(FAULT_STRUCT0); <span class="comment">// clear status</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gafb1516898b15bdc985a7460c7a9f7ca1">Cy_SysFault_SetMaskByIdx</a>(FAULT_STRUCT0, CY_SYSFAULT_SRSS_MCWDT0); <span class="comment">// enable Fault MCWDT #0</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2b7d86c125f4c1d55ffabfecc3b31338">Cy_SysFault_SetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line">    <a class="code" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> status = <a class="code" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a>(FAULT_STRUCT0, &amp;config);</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                   Interrupt settings                      *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysint__functions.html#gab2ff6820a898e9af3f780000054eea5d">Cy_SysInt_Init</a>(&amp;IRQ_cfg, &amp;irqFaultHandler);</div><div class="line">    NVIC_SetPriority((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn,  2UL);</div><div class="line">    NVIC_EnableIRQ((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn);</div><div class="line"></div><div class="line">    <span class="comment">/* Triggers an interrupt via a software write.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gac41a1a4c626385118e6bbacba1b38866">Cy_SysFault_SetInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga709ec3b6d64ecd3ca0fc712715f66b7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga709ec3b6d64ecd3ca0fc712715f66b7e">&#9670;&nbsp;</a></span>Cy_SysFault_GetErrorSource()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_en_SysFault_source_t Cy_SysFault_GetErrorSource </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the source of error for the Fault. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Fault source.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Handle the faults generated and get the fault data. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Returns the status of the interrupt for the fault structure */</span></div><div class="line">    uint32_t intrSource = <a class="code" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns the interrupt mask. */</span></div><div class="line">    uint32_t intrMskStatus =<a class="code" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns whether masked interrupt  and triggered the interrupt are same. */</span></div><div class="line">    uint32_t intrMskdStatus = <a class="code" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    cy_en_SysFault_source_t status = <a class="code" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span>(status != CY_SYSFAULT_NO_FAULT)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span>(status == CY_SYSFAULT_SRSS_MCWDT0) <span class="comment">// MCWDT0 fault</span></div><div class="line">        {</div><div class="line">             <a class="code" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga9043fc01c3dfcd1fcad3fa52fcc931f4a1515b67cfe882332b0ed2071283e6a37">CY_SYSFAULT_DATA0</a>); <span class="comment">//Get fault data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clears an interrupt mask.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Clear Interrupt flag */</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga140278f2e209ee8dfb39eb1574850742"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga140278f2e209ee8dfb39eb1574850742">&#9670;&nbsp;</a></span>Cy_SysFault_GetFaultData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysFault_GetFaultData </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sysfault__enums.html#ga9043fc01c3dfcd1fcad3fa52fcc931f4">cy_en_SysFault_Data_t</a>&#160;</td>
          <td class="paramname"><em>dataSet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the Fault information for the provided dataSet. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
    <tr><td class="paramname">dataSet</td><td>Instance of data register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Fault information.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Handle the faults generated and get the fault data. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Returns the status of the interrupt for the fault structure */</span></div><div class="line">    uint32_t intrSource = <a class="code" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns the interrupt mask. */</span></div><div class="line">    uint32_t intrMskStatus =<a class="code" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns whether masked interrupt  and triggered the interrupt are same. */</span></div><div class="line">    uint32_t intrMskdStatus = <a class="code" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    cy_en_SysFault_source_t status = <a class="code" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span>(status != CY_SYSFAULT_NO_FAULT)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span>(status == CY_SYSFAULT_SRSS_MCWDT0) <span class="comment">// MCWDT0 fault</span></div><div class="line">        {</div><div class="line">             <a class="code" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga9043fc01c3dfcd1fcad3fa52fcc931f4a1515b67cfe882332b0ed2071283e6a37">CY_SYSFAULT_DATA0</a>); <span class="comment">//Get fault data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clears an interrupt mask.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Clear Interrupt flag */</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga3da70af9e3a434ac08d9d5d63a09c480"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3da70af9e3a434ac08d9d5d63a09c480">&#9670;&nbsp;</a></span>Cy_SysFault_GetPendingFault()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysFault_GetPendingFault </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__sysfault__enums.html#ga7c15f9e82a516a6a3ded2dd7f8a2e568">cy_en_SysFault_Set_t</a>&#160;</td>
          <td class="paramname"><em>pendingFault</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the sources of pending fault that are not captured. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
    <tr><td class="paramname">pendingFault</td><td>Instance of PENDING register. PENDING0 returns the occurred pending Faults in the range of 0-31 Fault ID.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status of pending Faults.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Capture the Faults that are triggered and not enabled. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Fault config */</span></div><div class="line">    <a class="code" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> config = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc___sys_fault__t.html#a4918fb6fa6c96bcc62b0e7332eb68903">ResetEnable</a>   = <span class="keyword">false</span>,</div><div class="line">        .OutputEnable  = <span class="keyword">true</span>,</div><div class="line">        .TriggerEnable = <span class="keyword">false</span>,</div><div class="line">    };</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                 Fault report settings                     *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a>(FAULT_STRUCT0); <span class="comment">// clear status</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga81a4be2819364ef071bdd999b96823de">Cy_SysFault_ClearMaskByIdx</a>(FAULT_STRUCT0, CY_SYSFAULT_SRSS_MCWDT0); <span class="comment">// Clear fault Id mask. To keep the fault in pending state</span></div><div class="line">    <a class="code" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> status = <a class="code" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a>(FAULT_STRUCT0, &amp;config);</div><div class="line"></div><div class="line">    uint32_t faultIdSet = <a class="code" href="group__group__sysfault__functions.html#ga3da70af9e3a434ac08d9d5d63a09c480">Cy_SysFault_GetPendingFault</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga7c15f9e82a516a6a3ded2dd7f8a2e568a2f0413ba11df5f3fb2bc41e0c73dd477">CY_SYSFAULT_SET0</a>); </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gafb1516898b15bdc985a7460c7a9f7ca1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafb1516898b15bdc985a7460c7a9f7ca1">&#9670;&nbsp;</a></span>Cy_SysFault_SetMaskByIdx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysFault_SetMaskByIdx </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_en_SysFault_source_t&#160;</td>
          <td class="paramname"><em>idx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable the Fault to be captured. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
    <tr><td class="paramname">idx</td><td>The Fault id to be set in the mask register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Configures the SysFault for recording faults. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Fault config */</span></div><div class="line">    <a class="code" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> config = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc___sys_fault__t.html#a4918fb6fa6c96bcc62b0e7332eb68903">ResetEnable</a>   = <span class="keyword">false</span>,</div><div class="line">        .OutputEnable  = <span class="keyword">true</span>,</div><div class="line">        .TriggerEnable = <span class="keyword">false</span>,</div><div class="line">    };</div><div class="line"></div><div class="line">    <span class="comment">/* Configure Interrupt for Fault structure */</span></div><div class="line">    <a class="code" href="structcy__stc__sysint__t.html">cy_stc_sysint_t</a> IRQ_cfg =</div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__sysint__t.html#a204a8f07adf056c8d3dd818136da853f">intrSrc</a> = ((NvicMux3_IRQn &lt;&lt; <a class="code" href="group__group__sysint.html#ga3b9f1b9de4f122495a8b6580ce500d9a">CY_SYSINT_INTRSRC_MUXIRQ_SHIFT</a>) | cpuss_interrupts_fault_0_IRQn), <span class="comment">/* Bit 0-15 of intrSrc is used to store system interrupt value and bit 16-31 to store CPU IRQ value */</span></div><div class="line">        .intrPriority = 2UL</div><div class="line">   };</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                 Fault report settings                     *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a>(FAULT_STRUCT0); <span class="comment">// clear status</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gafb1516898b15bdc985a7460c7a9f7ca1">Cy_SysFault_SetMaskByIdx</a>(FAULT_STRUCT0, CY_SYSFAULT_SRSS_MCWDT0); <span class="comment">// enable Fault MCWDT #0</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2b7d86c125f4c1d55ffabfecc3b31338">Cy_SysFault_SetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line">    <a class="code" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> status = <a class="code" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a>(FAULT_STRUCT0, &amp;config);</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                   Interrupt settings                      *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysint__functions.html#gab2ff6820a898e9af3f780000054eea5d">Cy_SysInt_Init</a>(&amp;IRQ_cfg, &amp;irqFaultHandler);</div><div class="line">    NVIC_SetPriority((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn,  2UL);</div><div class="line">    NVIC_EnableIRQ((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn);</div><div class="line"></div><div class="line">    <span class="comment">/* Triggers an interrupt via a software write.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gac41a1a4c626385118e6bbacba1b38866">Cy_SysFault_SetInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga81a4be2819364ef071bdd999b96823de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga81a4be2819364ef071bdd999b96823de">&#9670;&nbsp;</a></span>Cy_SysFault_ClearMaskByIdx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysFault_ClearMaskByIdx </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_en_SysFault_source_t&#160;</td>
          <td class="paramname"><em>idx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disable the faults to be captured. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
    <tr><td class="paramname">idx</td><td>The fault id to be cleared in the mask register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Capture the Faults that are triggered and not enabled. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Fault config */</span></div><div class="line">    <a class="code" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> config = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc___sys_fault__t.html#a4918fb6fa6c96bcc62b0e7332eb68903">ResetEnable</a>   = <span class="keyword">false</span>,</div><div class="line">        .OutputEnable  = <span class="keyword">true</span>,</div><div class="line">        .TriggerEnable = <span class="keyword">false</span>,</div><div class="line">    };</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                 Fault report settings                     *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a>(FAULT_STRUCT0); <span class="comment">// clear status</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga81a4be2819364ef071bdd999b96823de">Cy_SysFault_ClearMaskByIdx</a>(FAULT_STRUCT0, CY_SYSFAULT_SRSS_MCWDT0); <span class="comment">// Clear fault Id mask. To keep the fault in pending state</span></div><div class="line">    <a class="code" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> status = <a class="code" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a>(FAULT_STRUCT0, &amp;config);</div><div class="line"></div><div class="line">    uint32_t faultIdSet = <a class="code" href="group__group__sysfault__functions.html#ga3da70af9e3a434ac08d9d5d63a09c480">Cy_SysFault_GetPendingFault</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga7c15f9e82a516a6a3ded2dd7f8a2e568a2f0413ba11df5f3fb2bc41e0c73dd477">CY_SYSFAULT_SET0</a>); </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9d607437d17ab97572fb76b4eb77a186"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9d607437d17ab97572fb76b4eb77a186">&#9670;&nbsp;</a></span>Cy_SysFault_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysFault_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the status of the interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Interrupt status.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Handle the faults generated and get the fault data. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Returns the status of the interrupt for the fault structure */</span></div><div class="line">    uint32_t intrSource = <a class="code" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns the interrupt mask. */</span></div><div class="line">    uint32_t intrMskStatus =<a class="code" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns whether masked interrupt  and triggered the interrupt are same. */</span></div><div class="line">    uint32_t intrMskdStatus = <a class="code" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    cy_en_SysFault_source_t status = <a class="code" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span>(status != CY_SYSFAULT_NO_FAULT)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span>(status == CY_SYSFAULT_SRSS_MCWDT0) <span class="comment">// MCWDT0 fault</span></div><div class="line">        {</div><div class="line">             <a class="code" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga9043fc01c3dfcd1fcad3fa52fcc931f4a1515b67cfe882332b0ed2071283e6a37">CY_SYSFAULT_DATA0</a>); <span class="comment">//Get fault data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clears an interrupt mask.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Clear Interrupt flag */</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga2c96322cea288ecd72616b6cf2d77c52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2c96322cea288ecd72616b6cf2d77c52">&#9670;&nbsp;</a></span>Cy_SysFault_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysFault_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears Active Interrupt Source. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Handle the faults generated and get the fault data. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Returns the status of the interrupt for the fault structure */</span></div><div class="line">    uint32_t intrSource = <a class="code" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns the interrupt mask. */</span></div><div class="line">    uint32_t intrMskStatus =<a class="code" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns whether masked interrupt  and triggered the interrupt are same. */</span></div><div class="line">    uint32_t intrMskdStatus = <a class="code" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    cy_en_SysFault_source_t status = <a class="code" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span>(status != CY_SYSFAULT_NO_FAULT)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span>(status == CY_SYSFAULT_SRSS_MCWDT0) <span class="comment">// MCWDT0 fault</span></div><div class="line">        {</div><div class="line">             <a class="code" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga9043fc01c3dfcd1fcad3fa52fcc931f4a1515b67cfe882332b0ed2071283e6a37">CY_SYSFAULT_DATA0</a>); <span class="comment">//Get fault data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clears an interrupt mask.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Clear Interrupt flag */</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gac41a1a4c626385118e6bbacba1b38866"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac41a1a4c626385118e6bbacba1b38866">&#9670;&nbsp;</a></span>Cy_SysFault_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysFault_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers an interrupt via a software write. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Configures the SysFault for recording faults. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Fault config */</span></div><div class="line">    <a class="code" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> config = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc___sys_fault__t.html#a4918fb6fa6c96bcc62b0e7332eb68903">ResetEnable</a>   = <span class="keyword">false</span>,</div><div class="line">        .OutputEnable  = <span class="keyword">true</span>,</div><div class="line">        .TriggerEnable = <span class="keyword">false</span>,</div><div class="line">    };</div><div class="line"></div><div class="line">    <span class="comment">/* Configure Interrupt for Fault structure */</span></div><div class="line">    <a class="code" href="structcy__stc__sysint__t.html">cy_stc_sysint_t</a> IRQ_cfg =</div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__sysint__t.html#a204a8f07adf056c8d3dd818136da853f">intrSrc</a> = ((NvicMux3_IRQn &lt;&lt; <a class="code" href="group__group__sysint.html#ga3b9f1b9de4f122495a8b6580ce500d9a">CY_SYSINT_INTRSRC_MUXIRQ_SHIFT</a>) | cpuss_interrupts_fault_0_IRQn), <span class="comment">/* Bit 0-15 of intrSrc is used to store system interrupt value and bit 16-31 to store CPU IRQ value */</span></div><div class="line">        .intrPriority = 2UL</div><div class="line">   };</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                 Fault report settings                     *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a>(FAULT_STRUCT0); <span class="comment">// clear status</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gafb1516898b15bdc985a7460c7a9f7ca1">Cy_SysFault_SetMaskByIdx</a>(FAULT_STRUCT0, CY_SYSFAULT_SRSS_MCWDT0); <span class="comment">// enable Fault MCWDT #0</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2b7d86c125f4c1d55ffabfecc3b31338">Cy_SysFault_SetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line">    <a class="code" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> status = <a class="code" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a>(FAULT_STRUCT0, &amp;config);</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                   Interrupt settings                      *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysint__functions.html#gab2ff6820a898e9af3f780000054eea5d">Cy_SysInt_Init</a>(&amp;IRQ_cfg, &amp;irqFaultHandler);</div><div class="line">    NVIC_SetPriority((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn,  2UL);</div><div class="line">    NVIC_EnableIRQ((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn);</div><div class="line"></div><div class="line">    <span class="comment">/* Triggers an interrupt via a software write.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gac41a1a4c626385118e6bbacba1b38866">Cy_SysFault_SetInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga2b7d86c125f4c1d55ffabfecc3b31338"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2b7d86c125f4c1d55ffabfecc3b31338">&#9670;&nbsp;</a></span>Cy_SysFault_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysFault_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets an interrupt mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Configures the SysFault for recording faults. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Fault config */</span></div><div class="line">    <a class="code" href="structcy__stc___sys_fault__t.html">cy_stc_SysFault_t</a> config = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc___sys_fault__t.html#a4918fb6fa6c96bcc62b0e7332eb68903">ResetEnable</a>   = <span class="keyword">false</span>,</div><div class="line">        .OutputEnable  = <span class="keyword">true</span>,</div><div class="line">        .TriggerEnable = <span class="keyword">false</span>,</div><div class="line">    };</div><div class="line"></div><div class="line">    <span class="comment">/* Configure Interrupt for Fault structure */</span></div><div class="line">    <a class="code" href="structcy__stc__sysint__t.html">cy_stc_sysint_t</a> IRQ_cfg =</div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__sysint__t.html#a204a8f07adf056c8d3dd818136da853f">intrSrc</a> = ((NvicMux3_IRQn &lt;&lt; <a class="code" href="group__group__sysint.html#ga3b9f1b9de4f122495a8b6580ce500d9a">CY_SYSINT_INTRSRC_MUXIRQ_SHIFT</a>) | cpuss_interrupts_fault_0_IRQn), <span class="comment">/* Bit 0-15 of intrSrc is used to store system interrupt value and bit 16-31 to store CPU IRQ value */</span></div><div class="line">        .intrPriority = 2UL</div><div class="line">   };</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                 Fault report settings                     *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga0a2a097b9b1d69fb51806964639c7af7">Cy_SysFault_ClearStatus</a>(FAULT_STRUCT0); <span class="comment">// clear status</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gafb1516898b15bdc985a7460c7a9f7ca1">Cy_SysFault_SetMaskByIdx</a>(FAULT_STRUCT0, CY_SYSFAULT_SRSS_MCWDT0); <span class="comment">// enable Fault MCWDT #0</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2b7d86c125f4c1d55ffabfecc3b31338">Cy_SysFault_SetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line">    <a class="code" href="group__group__sysfault__enums.html#gacc27f18e05d5cf7dbd13a6d27f0a2833">cy_en_SysFault_status_t</a> status = <a class="code" href="group__group__sysfault__functions.html#ga883297a5695f829251d11fb1cc6b6b4c">Cy_SysFault_Init</a>(FAULT_STRUCT0, &amp;config);</div><div class="line"></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <span class="comment">/*****                   Interrupt settings                      *****/</span></div><div class="line">    <span class="comment">/*********************************************************************/</span></div><div class="line">    <a class="code" href="group__group__sysint__functions.html#gab2ff6820a898e9af3f780000054eea5d">Cy_SysInt_Init</a>(&amp;IRQ_cfg, &amp;irqFaultHandler);</div><div class="line">    NVIC_SetPriority((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn,  2UL);</div><div class="line">    NVIC_EnableIRQ((<a class="code" href="group__group__sysint__enums.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>) NvicMux3_IRQn);</div><div class="line"></div><div class="line">    <span class="comment">/* Triggers an interrupt via a software write.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#gac41a1a4c626385118e6bbacba1b38866">Cy_SysFault_SetInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9ea5e9f82d9a8fad319651386772ea1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9ea5e9f82d9a8fad319651386772ea1c">&#9670;&nbsp;</a></span>Cy_SysFault_ClearInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysFault_ClearInterruptMask </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears an interrupt mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Handle the faults generated and get the fault data. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Returns the status of the interrupt for the fault structure */</span></div><div class="line">    uint32_t intrSource = <a class="code" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns the interrupt mask. */</span></div><div class="line">    uint32_t intrMskStatus =<a class="code" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns whether masked interrupt  and triggered the interrupt are same. */</span></div><div class="line">    uint32_t intrMskdStatus = <a class="code" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    cy_en_SysFault_source_t status = <a class="code" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span>(status != CY_SYSFAULT_NO_FAULT)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span>(status == CY_SYSFAULT_SRSS_MCWDT0) <span class="comment">// MCWDT0 fault</span></div><div class="line">        {</div><div class="line">             <a class="code" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga9043fc01c3dfcd1fcad3fa52fcc931f4a1515b67cfe882332b0ed2071283e6a37">CY_SYSFAULT_DATA0</a>); <span class="comment">//Get fault data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clears an interrupt mask.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Clear Interrupt flag */</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga873b3af5bd4bc10b844f9b4d781c37a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga873b3af5bd4bc10b844f9b4d781c37a9">&#9670;&nbsp;</a></span>Cy_SysFault_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysFault_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Interrupt Mask.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Handle the faults generated and get the fault data. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Returns the status of the interrupt for the fault structure */</span></div><div class="line">    uint32_t intrSource = <a class="code" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns the interrupt mask. */</span></div><div class="line">    uint32_t intrMskStatus =<a class="code" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns whether masked interrupt  and triggered the interrupt are same. */</span></div><div class="line">    uint32_t intrMskdStatus = <a class="code" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    cy_en_SysFault_source_t status = <a class="code" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span>(status != CY_SYSFAULT_NO_FAULT)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span>(status == CY_SYSFAULT_SRSS_MCWDT0) <span class="comment">// MCWDT0 fault</span></div><div class="line">        {</div><div class="line">             <a class="code" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga9043fc01c3dfcd1fcad3fa52fcc931f4a1515b67cfe882332b0ed2071283e6a37">CY_SYSFAULT_DATA0</a>); <span class="comment">//Get fault data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clears an interrupt mask.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Clear Interrupt flag */</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga290a6f77497d8310d7f8efd55600225c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga290a6f77497d8310d7f8efd55600225c">&#9670;&nbsp;</a></span>Cy_SysFault_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysFault_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype">FAULT_STRUCT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns whether masked interrupt triggered the interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a Fault structure instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Interrupt Mask.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Handle the faults generated and get the fault data. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Returns the status of the interrupt for the fault structure */</span></div><div class="line">    uint32_t intrSource = <a class="code" href="group__group__sysfault__functions.html#ga9d607437d17ab97572fb76b4eb77a186">Cy_SysFault_GetInterruptStatus</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns the interrupt mask. */</span></div><div class="line">    uint32_t intrMskStatus =<a class="code" href="group__group__sysfault__functions.html#ga873b3af5bd4bc10b844f9b4d781c37a9">Cy_SysFault_GetInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Returns whether masked interrupt  and triggered the interrupt are same. */</span></div><div class="line">    uint32_t intrMskdStatus = <a class="code" href="group__group__sysfault__functions.html#ga290a6f77497d8310d7f8efd55600225c">Cy_SysFault_GetInterruptStatusMasked</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    cy_en_SysFault_source_t status = <a class="code" href="group__group__sysfault__functions.html#ga709ec3b6d64ecd3ca0fc712715f66b7e">Cy_SysFault_GetErrorSource</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span>(status != CY_SYSFAULT_NO_FAULT)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span>(status == CY_SYSFAULT_SRSS_MCWDT0) <span class="comment">// MCWDT0 fault</span></div><div class="line">        {</div><div class="line">             <a class="code" href="group__group__sysfault__functions.html#ga140278f2e209ee8dfb39eb1574850742">Cy_SysFault_GetFaultData</a>(FAULT_STRUCT0, <a class="code" href="group__group__sysfault__enums.html#gga9043fc01c3dfcd1fcad3fa52fcc931f4a1515b67cfe882332b0ed2071283e6a37">CY_SYSFAULT_DATA0</a>); <span class="comment">//Get fault data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clears an interrupt mask.*/</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga9ea5e9f82d9a8fad319651386772ea1c">Cy_SysFault_ClearInterruptMask</a>(FAULT_STRUCT0);</div><div class="line"></div><div class="line">    <span class="comment">/* Clear Interrupt flag */</span></div><div class="line">    <a class="code" href="group__group__sysfault__functions.html#ga2c96322cea288ecd72616b6cf2d77c52">Cy_SysFault_ClearInterrupt</a>(FAULT_STRUCT0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
